#pragma once 

#include <iostream>
#include <functional>
typedef std::function<int (int, int)> func_t;

class Task{
public:
    Task(){}
    Task(int x, int y, func_t func)
        :_x(x),_y(y),func_(func)
        {}
    int operator ()()
    {
        return func_(_x, _y);
    }
    
    int getRet(){
        return _x+_y;
    }

public:
    int _x;
    int _y;
    func_t func_;
};